package com.cee.sch.job.service;

import com.cee.sch.job.dto.ScheduleJobLogDTO;
import com.github.pagehelper.PageInfo;
import org.quartz.SchedulerException;

public interface ScheduleJobLogService {

    /**
     * Enquire data from VIS_SYS_SCH_JOB_LOG
     * @param query
     * @return
     */
    public PageInfo<ScheduleJobLogDTO> getScheduleJobLogPageInfo(ScheduleJobLogDTO  query);

    /**
     * Add new schedule jog log by given jobName, jobGroupName
     * @param jobName
     * @param jobGroupName
     * @param scheduleJobLog
     * @return
     */
    public ScheduleJobLogDTO addScheduleJobLog(String jobName, String jobGroupName, ScheduleJobLogDTO scheduleJobLog) throws SchedulerException;

    /**
     * Add new schedule jog log
     * @param scheduleJobLog
     * @return
     */
    public ScheduleJobLogDTO addScheduleJobLog(ScheduleJobLogDTO scheduleJobLog);

    public void updateScheduleJobLog(ScheduleJobLogDTO jobLog);
}
